 <?php
//$result = mysql_query("select * from gallery where zero ='0'");
//$nr = mysql_num_rows($result);
//if($nr >=1){

//while($row = mysql_fetch_array($result)){
$img_show = "hoe.jpg";
$caption_show = "hoe";
$dir = "upload/";
$image_show = glob($dir . "$img_show.*");


echo "<div class='gl_img'> <img src='".$dir .''.$img_show."'" ." width='auto' height='200px' /> </div>";
//}
//}
?>
======CSS=====

.gl_img{
width:217px;
height:145px;
position:relative;
float: left;
border:1px solid #616161;
}